package com.eiisan.user.feign;

import com.eiisan.base.constant.EiisanServiceList;
import com.eiisan.core.util.api.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 用户服务Feign接口类
 * @Author: gragonfly
 * @Date: 2019/6/21
 */
@FeignClient(value = EiisanServiceList.EIISAN_SERVICE_USER)
public interface UserClientApi {

    /**
     * 查询手机号是否存在(data ：true 存在,false 不存在)
     * @param mobile
     * @return
     */
    @PostMapping(value = "/api/user/existMobile")
    Result<Boolean> checkMobile(@RequestParam String mobile);
}
